package org.jsbd.boss.domian.channel;

import com.alibaba.fastjson.JSONObject;

/**
 * @desc
 * @Date 2018/8/20 14:27
 * @Author xupengcheng [xupengcheng@zhexinit.com]
 */
public class BatteryInfo {


    /**
     * 充电方式
     *
     */
    private Integer plugged;
    /**
     * 电池最大值
     */
    private Integer scale;

    /**
     * 电池状态
     */
    private Integer status;

    /**
     * 健康状态
     */
    private Integer health;


    /**
     * 电池剩余容量
     */
    private Integer level;

    /**
     * 电池是否存在
     */
    private Boolean present;

    /**
     * 电池类型
     */
    private String technology;

    /**
     * 电压
     */
    private Integer voltage;

    /**
     * 温度
     */
    private Integer temperature;


    public Integer getHealth() {
        return health;
    }

    public void setHealth(Integer health) {
        this.health = health;
    }

    public Integer getLevel() {
        return level;
    }

    public void setLevel(Integer level) {
        this.level = level;
    }

    public Integer getPlugged() {
        return plugged;
    }

    public void setPlugged(Integer plugged) {
        this.plugged = plugged;
    }

    public Boolean getPresent() {
        return present;
    }

    public void setPresent(Boolean present) {
        this.present = present;
    }

    public Integer getScale() {
        return scale;
    }

    public void setScale(Integer scale) {
        this.scale = scale;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getTechnology() {
        return technology;
    }

    public void setTechnology(String technology) {
        this.technology = technology;
    }

    public Integer getTemperature() {
        return temperature;
    }

    public void setTemperature(Integer temperature) {
        this.temperature = temperature;
    }

    public Integer getVoltage() {
        return voltage;
    }

    public void setVoltage(Integer voltage) {
        this.voltage = voltage;
    }


    @Override
    public String toString() {
        return JSONObject.toJSONString(this);
    }
}
